//#pragma once
#include"graphics.h"


//**************************************画出光标


extern WINDOW* g_win;
extern GRAPHICS_COLOR g_fore_color;
extern GRAPHICS_COLOR g_back_color;
extern int g_style;


void drawCursor(POINT cursor)
{
	g_back_color = GCCyan;		//设置背景色
	g_fore_color = GCRed;
	wattrset(g_win,CURRENT_ATTRIBUTE);	//更新前景色和背景色
	char* cursor1 = "┛ ┗";		//光标上部分
	char* cursor2 = "┓ ┏";		//光标下部分
	mvaddstr(cursor.x-1,cursor.y-1,cursor1);//画上部分
	mvaddstr(cursor.x+1,cursor.y-1,cursor2);//画下部分
	
}
